Prev | Next

Changing Flag Attributes

<< | >>

Get The Wrinkles Out With Conform

Overview

In the last section, we mentioned that Flag Stretch, Flag Bend, and Flag Shear percentage values were only goals for the spring system. Due to the way the flag simulation works, the springs may push and pull each other outside of the desired ranges. The Conform parameter can be used to better enforce the goal of the spring parameters. That is, it can further constrain the springs to create a more accurate system.

A side effect of this constraint is that it will make the flag appear more stiff, keeping the flag more upright. This can make the flag have less folds while flapping in the wind.

Life Without Conform

The default flag has a Conform value of 7. This mean the spring system tries 7 times as hard to make the flag mesh conform to the goals of Flag Stretch, Flag Bend, and Flag Shear than if Conform were set to 1.

Let's see what happens when we remove the Conform calculation.

  1. Open the "Quick Start.aep" project.
  2. Open the Options window by clicking the 3D Flag logo in the Effect Controls window.



  3. Pause the animation by pressing the spacebar.
  4. Set Conform to 1. This tells the spring system to not care about how out of range the springs are.



    Notice how the flag no longer holds its shape in the wind.



  5. Play the animation by clicking the Restart Simulation button. Notice that the stretched areas continue to be pulled. There isn't anything preventing this since Conform is 1.

Setting A High Conform Value

Let's say we want our flag to be rather stiff. We want the wind to blow through the flag, but we don't want it to be too springy. We can set Conform to a high value to achieve this goal.

  1. Pause the animation by pressing the spacebar.
  2. Change Conform to 20. The system will now try 20 times as hard to keep the flag's shape.
  3. Play the animation by clicking the Restart Simulation button. The flag now holds its shape much better, allowing little stretching.



    The real-time playback may be more choppy than when Conform was set to 1. This is because calculating each flag frame when Conform is 20 requires more effort.
  4. When you're done watching the flag, click the OK button to close the Options window.

Usually, Conform values in the range of 1 to 20 are sufficient.

There is one more flag parameter to discuss. The next section, Using Air Friction To Slow Things Down, will show how to use Air Friction to gain more control over your flag's behavior.